#include <QDebug>

#include "unionhmidll.h"
#include "unionhmidll_global.h"

static UnionHmiDLL* pUnionHMIDLLInstance = nullptr;

short UnionHMIInstanceInit(){
    if(pUnionHMIDLLInstance == nullptr){
        pUnionHMIDLLInstance = new UnionHmiDLL();
        return 1;
    }
    return 0;
}

void  UnionHMIProgressBar(int value){
    if(pUnionHMIDLLInstance != nullptr){
        pUnionHMIDLLInstance->UnionHmiMainWindowWriteProgressBar(value);
    }
}

void  UnionHMIMessageBox(MessageType Type,const QString Data){
    if(pUnionHMIDLLInstance != nullptr){
        pUnionHMIDLLInstance->UnionHmiMainWindowWriteMessageBox(Type,Data);
    }
}
